package com.mxpio.erp.common.inventory.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.mxpioframework.jpa.BaseEntity;
import com.mxpioframework.jpa.annotation.Generator;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_INVENTORY_FLOW")
@ApiModel(value="库存流水")
public class InventoryFlow extends BaseEntity {

	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name = "ID_", updatable = false)
	@Generator
	@ApiModelProperty(value = "流水号")
	private String id;

	@Column(name = "ACCESS_TYPE_")
	@ApiModelProperty(value = "出入类型")
	private String accessType;
	
	@Column(name = "ITEM_CODE_")
	@ApiModelProperty(value = "物料代码")
	private String itemCode;
	
	@Column(name = "QUANTITY_")
	@ApiModelProperty(value = "数量")
	private BigDecimal quantity;
	
	@Column(name = "LOT_NO_")
	@ApiModelProperty(value = "批次号")
	private String lotNo;
	
	@Column(name = "ORIGIN_BIZ_NO_")
	@ApiModelProperty(value = "来源单号")
	private String originBizNo;
	
	@Column(name = "ORIGIN_BIZ_TYPE_")
	@ApiModelProperty(value = "来源单据类型")
	private String originBizType;
	
	@Column(name = "WH_CODE_")
	@ApiModelProperty(value = "仓库编号")
	private String whCode;
	
	@Column(name = "MEMO_")
	@ApiModelProperty(value = "备注")
	private String memo;
}
